<template>
  <div id="app">
    <div v-if="$route.meta.keepAlive">
      <NavBar />
      <router-view />
    </div>

    <router-view v-if="!$route.meta.keepAlive"></router-view>
  </div>
</template>

<script>
import NavBar from './components/NavBar.vue'
import axios from 'axios'
export default {
  name: 'App',
  components: {
    NavBar,
  },
};
</script>

<style>
/* 全局样式 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  text-align: center;
  color: #2c3e50;
}
</style>
